# -*- encoding:utf-8 -*-

class SchoolMember:
    def __init__(self, name, age):
        self.name = name
        self.age = age

    def show_info(self):
        print("Name={0},age={1}".format(self.name, self.age))


class Teacher(SchoolMember):
    def __init__(self, name, age, salary):
        SchoolMember.__init__(self, name, age)
        self.salary = salary

    def show_info(self):
        SchoolMember.show_info(self)
        print("Salary={0}".format(self.salary))


class Student(SchoolMember):
    def __init__(self, name, age, score):
        SchoolMember.__init__(self, name, age)
        self.score = score

    def show_info(self):
        SchoolMember.show_info(self)
        print("Score={0}".format(self.score))


t = Teacher("teacher", 33, 5000)
s = Student("student", 18, 79)

members = [t, s]

for mem in members:
    mem.show_info()
